package com.autumn.zero.workflow.services.impl;

import org.springframework.beans.factory.annotation.Autowired;

import com.autumn.domain.repositories.IDefaultEntityRepository;
import com.autumn.zero.workflow.entitys.WorkflowDefinition;
import com.autumn.zero.workflow.entitys.WorkflowProcess;
import com.autumn.zero.workflow.repositorys.IWorkflowDefinitionRepository;
import com.autumn.zero.workflow.repositorys.IWorkflowProcessRepository;

/**
 * 默认的流程服务
 * 
 * @author 杨昌国 2019-01-24 14:56:47
 */
public class DefaultProcessServiceImpl extends AbstractProcessService<WorkflowDefinition, WorkflowProcess> {

	@Autowired
	private IWorkflowDefinitionRepository definitionRepository;

	@Autowired
	private IWorkflowProcessRepository processRepository;

	@Override
	protected IDefaultEntityRepository<WorkflowDefinition> getWorkflowDefinitionRepository() {
		return this.definitionRepository;
	}

	@Override
	protected Class<WorkflowDefinition> getWorkflowDefinitionEntityClass() {
		return WorkflowDefinition.class;
	}

	@Override
	protected IDefaultEntityRepository<WorkflowProcess> getWorkflowProcessRepository() {
		return processRepository;
	}

	@Override
	protected Class<WorkflowProcess> getWorkflowProcessEntityClass() {
		return WorkflowProcess.class;
	}

}
